<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{if isset($data_seo.seo_title)}{$data_seo.seo_title}{/if}</title>
    <meta charset="UTF-8" name="keywords" content="{if isset($data_seo.seo_keywords)}{$data_seo.seo_keywords}{/if}">
    <meta charst="UTF-8" name="description" content="{if isset($data_seo.seo_description)}{$data_seo.seo_description}{/if}">
    <link rel="stylesheet" type="text/css" href="/static/home/css/main.css">
    <link rel="stylesheet" type="text/css" href="/static/home/css/alert.css">
    <link rel="stylesheet" type="text/css" href="/static/home/css/swiper.min.css">
    <link rel="stylesheet" type="text/css" href="/static/home/css/animate.min.css">
</head>
<body>
    <div class="header">
        <div class="top-top">
            <div class="tt-left"><div class="js-box box"></div><p>对新人的选择</p> </div>
            <div class="tt-right">
                <a href="#" class="a1">{if isset($data_ext.tell)}{$data_ext.tell}{/if}&nbsp&nbsp&nbsp&nbsp/</a>
                <a target="_blank" href="{if isset($data_ext.service_link)}{$data_ext.service_link}{/if}" class="a2">获取报价&nbsp&nbsp&nbsp&nbsp/</a>
                <a href="{if isset($data_ext.xlwb)}{$data_ext.xlwb}{/if}" target="_blank" class="a3"></a>
                <a href="#" class="a4">  <img src="{if isset($data_ext.wx_code)}{$data_ext.wx_code}{/if}" alt=""></a>
            </div>
        </div>
        <div class="top-nav">
            <div class="tn-content">
                <ul>
                    <li>
                        <a href="/" class="tn-n ">
                            <div class="xs">首页</div>
                            <div class="yc">HOME</div>
                        </a>
                    </li>
                    <li>
                        <a href="/guest" class="tn-n">
                            <div class="xs">客照</div>
                            <div class="yc">GUEST</div>
                        </a>
                    </li>
                    <li>
                        <a href="/works" class="tn-n">
                            <div class="xs">作品</div>
                            <div class="yc">WORKS</div>
                        </a>
                    </li>
                    <li class="psjd">
                        <a href="/venues" class="tn-n cur">
                            <div class="xs">拍摄基地</div>
                            <div class="yc">VENUES</div>
                        </a>
                        <div class="cgslt">
                            {volist name="data_cg" id="v"}
                            <div class="ylt shuiy-box">
                                <a target="_blank"  href="/venues/nr/id/{$v.id}"class="move-bg"> <img src="{$v.main_img}" alt="">
                                </a>
                            </div>
                            {/volist}

                        </div>
                    </li>
                    <li>
                        <a href="/tripshoot" class="tn-n">
                            <div class="xs">全球旅拍</div>
                            <div class="yc">TRIP SHOOT</div>
                        </a>
                    </li>
                    <li>
                        <a href="/artclub" class="tn-n">
                            <div class="xs">至尚艺术会所</div>
                            <div class="yc">ART CLUB</div>
                        </a>
                    </li>
                    <li>
                        <a href="/activity" class="tn-n">
                            <div class="xs">活动优惠</div>
                            <div class="yc">ACTIVITY</div>
                        </a>
                    </li>
                    <li>
                        <a  {if isset($pp_link) && $pp_link !=='' } href="{$pp_link}" target="_blank" {else} href="/introduce"{/if} class="tn-n">
                        <div class="xs">品牌介绍</div>
                        <div class="yc">INTRODUCE</div>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <h1 class="top-h1"><a href="/"><img src="/static/home/img/logo.jpg" alt=""></a></h1>
    </div>

    <div class="banner">
        <ul class="clearfix">
            <li >
                <a class="pc-banner" {if isset($data_banner) && $data_banner.out_link !=''}target="_blank" href="{$data_banner.out_link}"{/if}> <img src="{$data_banner.banner_img}" /></a>
            </li>
        </ul>

    </div>
<div class="cg1">
    <div class="cg1-main">
        <img src="/static/home/img/拍摄场馆基地.png" alt="">
        <div class="cg1-main-btn">
            <a href="/venues/index/Scenery/2"><div class="cg1-main-btn1 {if isset($Scenery) && $Scenery==2} cur{/if}" >外景</div></a>
            <a href="/venues/index/Scenery/1"><div class="cg1-main-btn2  {if isset($Scenery) && $Scenery ==1} cur{/if}">内景</div></a>
        </div>

        <div class="cg1-tps1 " id="venues-list">
            {volist name="data_jd" id="v"}
            <div class="cg1-main-1 venues-div" data-id="{$v.id}">
                <div class="cg1-main-11">
                <a href="/venues/nr/id/{$v.id}">
                    <img class="cg1-main-t" src="{$v.main_img}" alt="">
                </a>
                </div>
                <div class="cg1-main-b">
                    <h3>[ {$v.title} ·<span>{if $v.Scenery==2} 外景{else}内景{/if}基地</span> ]</h3>
                    <div class="cg1-main-b-1"><img src="/static/home/img/xte.png" alt=""></div>
                    <p>{$v.intro}</p>
                </div>
            </div>
            {/volist}

        </div>
        <input type="hidden" value="1" id="page">
        <a href="javascript:;"  class="cg1-tps2" id="load-more"  onclick="getMore()" >
            点击加载更多
        </a>
    </div>
</div>

    {include file="public/foot"}
    <script>
        var page=$("#page").val();
        var type='<?php echo $type;?>';
        if(type ==2){
            $("#load-more").css('display','none');
        }
        function getMore(){
            page++;
            var  scenery = '<?php  echo $Scenery?>';


            $.ajax({
                url:'/Venues/getmore',
                type:'post',
                data:{page:page,scenery:scenery},
                dataType:'json',
                success:function(e){
                    var html ='';
                    var Scenery='';
                    if(1 == e.code){
                        for(i in e.data){
                            if(e.data[i].Scenery ==2){
                                Scenery ='外景基地';
                            }else{
                                Scenery ='内景基地';
                            }
                                html +=' <div class="cg1-main-1 venues-div" data-id="'+e.data[i].id+'">\n' +
                                    '                <div class="cg1-main-11">\n' +
                                    '                <a href="/venues/nr/id/'+e.data[i].id+'">\n' +
                                    '                    <img class="cg1-main-t" src="'+e.data[i].main_img+'" alt="">\n' +
                                    '                </a>\n' +
                                    '                </div>\n' +
                                    '                <div class="cg1-main-b">\n' +
                                    '                    <h3>[ '+e.data[i].title+' ·<span>'+Scenery+'</span> ]</h3>\n' +
                                    '                    <div class="cg1-main-b-1"><img src="/static/home/img/xte.png" alt=""></div>\n' +
                                    '                    <p>'+e.data[i].intro+'</p>\n' +
                                    '                </div>\n' +
                                    '            </div>';
                        }
                        $("#venues-list").append(html);
                        if(e.type ==2){
                            istop = 1;
                            $("#load-more").css('display','none');
                            return false;
                        }
                    }else{
                        $("#load-more").html(e.msg);
                    }

                }
            })

        }


    </script>
</html>